package com.spzx.product.api;


import com.spzx.common.core.constant.SecurityConstants;
import com.spzx.common.core.constant.ServiceNameConstants;
import com.spzx.common.core.web.domain.AjaxResult;
import com.spzx.product.api.factory.RemoteProductServiceFallbackFactory;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

@FeignClient(
//        contextId = "remoteBrandService",
        value = ServiceNameConstants.PRODUCT_SERVICE //微服务的名字
)
public interface RemoteBrandService {

    @Operation(summary = "测试")
    @GetMapping("/brand/test")
    AjaxResult test(
            @Parameter(description = "source")
            @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
